{include file="header.html"}
<script src="/js/ckeditor/ckeditor.js"></script>

<div class="page-header">
	<h6>
		咖啡馆管理
		<small>
			<i class="ace-icon fa fa-angle-double-right"></i>
			编辑咖啡馆
		</small>
	</h6>
</div><!-- /.page-header -->
<div class="row">
<div class="col-xs-12">
	<form class="form-horizontal" role="form" method="post" action="?app=coffee_shop&act=edit" enctype="multipart/form-data">	
		<div class="form-group">
			<label class="col-sm-2 control-label no-padding-right" for="name"> 咖啡名称 </label>
			<div class="col-sm-10">
				<input type="text" id="name" name="name" value="{$row->name}" class="col-xs-6" />
				<input type="hidden" id="id" name="id" value="{$row->id}" class="col-xs-6" />
			</div>
		</div>
	<div class="form-group">
			<label class="col-sm-2 control-label no-padding-right" for=""> 电话 </label>
			<div class="col-sm-10">
				<input type="number"  name="tel" value="{$row->mobile}" class="col-xs-6" />
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label no-padding-right" for="pic"> 门店图片 </label>
			<div class="col-sm-10">
				<input type="file" id="pic" name="pic" value="" class="col-xs-6" />
				<img src="{if $row->pic !== ''}{$row->pic}{else}/images/nopic.png{/if}" style="width:100px;">
			</div>
		</div>	
		<div class="form-group">
			<label class="col-sm-2 control-label no-padding-right" for="status"> 状态 </label>
			<div class="col-sm-10">
				<div class="radio">
					<label>
						<input type="radio" name="status" value="1"  class="ace" {if $row->status == 1}checked{/if}/>
						<span class="lbl"> 正常 </span>
					</label>
				</div>
				<div class="radio">
					<label>
						<input type="radio" name="status" value="0" class="ace" {if $row->status == 0}checked{/if}/>
						<span class="lbl"> 隐藏</span>
					</label>
				</div>
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label no-padding-right" for="shop"> 所属门店 </label>
			<div class="col-sm-2">
				<select name="shop_id" id="shop" class="form-control">
					<option value="">所属门店</option>
					{foreach from = $shop item =r}
					<option value="{$r->id}" {if $row->shop_id == {$r->id}}selected{/if}>{$r->name}</option>
					{/foreach}
				</select> 		
			</div>
		</div>

		<div class="clearfix form-actions">
			<div class="col-md-offset-3 col-md-9">
				<button class="btn btn-info" type="submit">
					<i class="ace-icon fa fa-check bigger-110"></i>
					提交
				</button>

				&nbsp; &nbsp; &nbsp;
				<button class="btn" type="reset">
					<i class="ace-icon fa fa-undo bigger-110"></i>
					重置
				</button>
			</div>
		</div>
	</form>
</div>
</div>

{include file="footer.html"}